class Student:
    def __init__(self, student_list):
        self.student = student_list

    def __getitem__(self, item):
        return self.student[item]

    def __len__(self):
        return len(self.student)


student = Student(['张三','李四','tom'])

for item in student:
    print(item)

print(student);

print(len(student));



